import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./plugins/element.js";

import "./assets/pre.scss";
Vue.prototype.$store = store;

Vue.prototype.$u = { name: "123" };

import Umixin from "@/store/Umixin";
Vue.mixin(Umixin);
import "./permission"; // 权限控制
import * as filters from "./filters/index.js"; // 全局筛选器
import http from "./http";
Vue.prototype.$http = http;
Vue.config.productionTip = false;

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key]);
});
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
